'use strict'

const { Controller } = require('egg')
class CommonController extends Controller {
  /**
   * 公共上传
   */
  async upload () {
    const { ctx } = this
    const url = await ctx.service.common.upload()

    ctx.helper.success(ctx, { data: { url } })
  }
}

module.exports = CommonController